package com.piggy.logi.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.piggy.logi.sys.domain.LogiWaybillFee;
import com.piggy.logi.sys.mapper.LogiWaybillFeeMapper;
import com.piggy.logi.sys.service.ILogiWaybillFeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 运单费用Service业务层处理
 *
 * @author zito
 * @date 2023-08-10
 */
@Slf4j
@Service
public class LogiWaybillFeeServiceImpl extends ServiceImpl<LogiWaybillFeeMapper, LogiWaybillFee> implements ILogiWaybillFeeService {

    @Override
    public void updateByUK(LogiWaybillFee fee) {
        baseMapper.updateByUK(fee);
    }

    @Override
    public void removeByUK(Long deptId, Long waybillId) {
        baseMapper.removeByUK(deptId, waybillId);
    }

    @Override
    public List<LogiWaybillFee> getByWaybillIds(List<Long> waybillIds) {
        return baseMapper.selectByWaybillIds(waybillIds);
    }
}
